package io.renren.config;


import org.springframework.stereotype.Component;

@Component
public class SysConfig {

    private String databaseType = "mysql";
    private int jdbcOrMybatis = 0;
    private int isRedisCache = 0;
    private int pageVal = 1;
    private int isDubbo = 1;
    private int isSpringMvc = 1;

    public String getDatabaseType() {
        return databaseType;
    }

    public SysConfig setDatabaseType(String databaseType) {
        this.databaseType = databaseType;
        return this;
    }

    public int getJdbcOrMybatis() {
        return jdbcOrMybatis;
    }

    public SysConfig setJdbcOrMybatis(int jdbcOrMybatis) {
        this.jdbcOrMybatis = jdbcOrMybatis;
        return this;
    }

    public int getIsRedisCache() {
        return isRedisCache;
    }

    public SysConfig setIsRedisCache(int isRedisCache) {
        this.isRedisCache = isRedisCache;
        return this;
    }

    public int getPageVal() {
        return pageVal;
    }

    public SysConfig setPageVal(int pageVal) {
        this.pageVal = pageVal;
        return this;
    }

    public int getIsDubbo() {
        return isDubbo;
    }

    public SysConfig setIsDubbo(int isDubbo) {
        this.isDubbo = isDubbo;
        return this;
    }

    public int getIsSpringMvc() {
        return isSpringMvc;
    }

    public SysConfig setIsSpringMvc(int isSpringMvc) {
        this.isSpringMvc = isSpringMvc;
        return this;
    }

    @Override
    public String toString() {
        return "SysConfig{" +
                "databaseType='" + databaseType + '\'' +
                ", jdbcOrMybatis=" + jdbcOrMybatis +
                ", isRedisCache=" + isRedisCache +
                ", pageVal=" + pageVal +
                ", isDubbo=" + isDubbo +
                ", isSpringMvc=" + isSpringMvc +
                '}';
    }
}
